<?php

namespace app\common\enums;

class QuotaBusinessTypeEnum extends BaseEnum
{
    // 定义常量
    public const E1 = '1';
    public const E2 = '2';
    public const E3 = '3';

    // 定义描述
    public array $description = [
        self::E1 => '合伙人名额申请',
        self::E2 => '开通合伙人',
        self::E3 => '开通合伙人失败'
    ];

    public array $tradeType = [
        self::E1 => true,
        self::E2 => false,
        self::E3 => true
    ];

    public function getTradeType($value)
    {
        return $this->tradeType[$value] ?? '';
    }
}
